#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

typedef enum{
		EOBJTYPE_WATER=0,
		EOBJTYPE_FOOD=1,
		EOBJTYPE_CREATURE=2
}EOBJTYPE;

typedef enum{
	DIR_LEFT_UP,
	DIR_UP,
	DIR_RIGHT_UP,
	DIR_LEFT,
	DIR_RIGHT,
	DIR_LEFT_DOWN,
	DIR_DOWN,
	DIR_RIGHT_DOWN,
	DIR_NONE,
}DIRECTION;

typedef enum{
		RES_COMMON,
		RES_GOOD,
		RES_BAD,
}RESULT_JUDGMENT;

#define ALL_DIRECTION_COUNT 8
#define ALL_EOBJTYPE 3

//#define MAX_RUN_STEP (ALL_DIRECTION_COUNT*2+NERVUS_MAP_WIDTH*NERVUS_MAP_DEPTH)

#define INPUT_SIGNAL_COUNT 8
#define OUTPUT_SIGNAL_COUNT 9

//#define SIGNAL_DEPRECITION 0.01
#define SIGNAL_BASE 100
#define SIGNAL_PERIOD 10
#define SIGNAL_ZERO 0
//#define EXCITING_SIGNAL (SIGNAL_BASE*SIGNAL_PERIOD)

#define SIGNAL_RATE 1.5

#define NERVUS_NET_DEPTH 5

#define MAX_RUN_STEP 50
#define MAX_CASE ((int) pow( (float)ALL_EOBJTYPE , ALL_DIRECTION_COUNT))
#define MAX_CASE2 6561

#ifndef TRACE
#define TRACE printf
#endif

